#ifndef __MPUIIC_H
#define __MPUIIC_H
#include <stdlib.h>
#include <i2c.h>
#include <fpioa.h>
#include <sleep.h>

int mpuiic_init(uint8_t slave_addr);
int mpuiic_read_len(uint8_t slave_addr, uint8_t reg_addr,uint8_t length, uint8_t *data);
int mpuiic_write_len(uint8_t slave_addr, uint8_t reg_addr,uint8_t length, uint8_t *data);
uint8_t mpuiic_read(uint8_t slave_addr, uint8_t reg_addr);
int mpuiic_write(uint8_t slave_addr, uint8_t reg_addr, uint8_t data);

#endif